<%@ page contentType="text/html;charset=UTF-8" language="java"
	isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>系统设置</title>
<meta name="search" content="price" />
<meta name="author" content="chunhai.chen(15317227@qq.com)" />
<link href="_assets/css/Style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="main">

<table width='100%' id="customerTable" class="yui-grid">
	<c:if test="${not empty settings}">
		<thead>
			<tr>
				<%--th>编号</th--%>
				<th>名称</th>
				<th>类型</th>
				<th>用法</th>
				<th>短值</th>
				<%--th>状态</th--%>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${settings}" var="v" varStatus="vst">
				<tr>
					<%--td><c:out value="${v.uid}" default=""></c:out></td%--%>
					<td width=1 nowrap>${v.title}</td>
					<td width=1 nowrap>${v.type}</td>
					<td>${v.usage }</td>
					<td><span style='overflow:hidden;width:100px;'><c:if test="${ not (v.type == 'Text') }">${v.value }</c:if></span>
					</td>
					<%--
					<td><c:choose>
						<c:when test="${v.status == 0}">O应用</c:when>
						<c:otherwise>F未用</c:otherwise>
					</c:choose></td>
					--%>
					<td nowrap=true><A href='/admin/setting/edit.asp?uid=${v.uid }'>编辑</A> 
					<%--c:choose>
						<c:when test="${v.status == 0}">
							<A href='/setting/unpublish.asp?id=${v.id }'>未用</A>
						</c:when>
						<c:otherwise>
							<A href='/setting/publish.asp?id=${v.id }'>应用</A>
						</c:otherwise>
					</c:choose--%></td>
				</tr>
			</c:forEach>
		</tbody>
	</c:if>

</table>


</div>
</body>

</html>

